# -*- encoding:utf-8 -*-
# @time: 2023/3/15 19:21
# @author: Maxs_hu
import os
import sys
import django

base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(base_dir)

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Order.settings')
django.setup()  # 伪造django启动

from web import models
from utils.encrypt import md5

# 创建管理员
models.Administrator.objects.create(
    username='Maxs_hu',
    password=md5('th20190410'),
    mobile='18355136820'
)
